import { useCookies } from "@vueuse/integrations/useCookies";

const TokenKey = "token"

const cookie = useCookies()

//获取token
export function getToken(cookieName){
    return cookie.get(cookieName)
}
//设置token
export function setToken(token){
    return cookie.set(TokenKey,token)
}
//清除token
export function removeToken(){
    return cookie.remove(TokenKey)
}